<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="ThemeBucket">
		<title>修改密码</title>
		<link href="../css/style.css" rel="stylesheet">
		<link href="../css/jquery.stepy.css" rel="stylesheet">
	</head>
	<body class="login-body" onload="indexmenu('${oneMenu}','${twoMenu}');">
	<%@ include file="../index/index.jsp"%>
		<form class="form-signin" action="../login/modifyPwd.do" method="post" id="modifyPwdForm">
			<div class="form-signin-heading text-center">
				<img src="../images/login-logo.png" alt="" />
			</div>
			<div class="login-wrap">
				<label class="error"><c:if test="${not empty msg }">${msg }</c:if></label>
				<input name="yuanPwd" type="password" class="form-control " placeholder="请输入原密码" autofocus/>
				<input name="newPwd" type="password" class="form-control" placeholder="请输入新密码" id="password"/>
				<input name="repeatPwd" type="password" class="form-control" placeholder="请再次输入新密码" />
				<input type="submit" class="btn btn-lg btn-login btn-block" value="确   认" style="display: block;width:100%;"/>
			</div>
		</form>
	<script type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery.validate.min.js"></script>
	<script type="text/javascript">
	$().ready(function() {
		 $("#modifyPwdForm").validate({
		   rules: {
			   yuanPwd: "required",
			   newPwd: {
			    required: true,
			    minlength: 6
			   },
			   repeatPwd: {
			    required: true,
			    minlength: 6,
			    equalTo: "#password"
			   }
			  },
			   messages: {
				   yuanPwd: {
				    required: "请输入密码"
				   },
				   newPwd:{
					   required: "请输入新密码",
					   minlength: "确认密码不能小于6个字符",
				   },
				   repeatPwd: {
				    required: "请输入确认密码",
				    minlength: "确认密码不能小于6个字符",
				    equalTo: "两次输入密码不一致"
				   }
			  }
		    });
		});
	</script>
	</body>
</html>